package com.ruoyi.model.comment.params;

import lombok.Data;

/**
 * @author : 张怀秋
 **/
@Data
public class CommentParams {
    private String activityId;
    private String type;
    private String typeName;

    public String getTypeName() {
        if (this.type.equals("0")) {
            this.typeName = "contest-comment-list";
        }
        if (this.type.equals("1")) {
            this.typeName = "activity-comment-list";
        }
        if (this.type.equals("2")) {
            this.typeName = "blog-comment-list";
        }
        return typeName;
    }
}
